package edu.sctu.practice.class01.nieyu.test.test01;

/**
 * Created by Administrator on 2015/10/14.
 * 交通工具类
 */
public class Vehicle {

    int speed;//交通工具速度；
    int size;//交通工具体积；

    public void move() {

        System.out.println("我是交通工具，我在移动！！");
    }

    public void setSpeed(int speed) {

        this.speed = speed;
    }

    public int speedUp() {

        speed = speed + 10;

        return speed;
    }

    public int speedDown() {

        speed = speed - 15;

        return speed;

    }
}
